

package cn.shengchao.examstar.me.play.acl.ports.repositories;

import cn.shengchao.examstar.me.play.domain.UserCourse;
import cn.shengchao.examstar.me.play.domain.UserCoursePlayLog;

import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface IUserCoursePlayRepository {
    void saveUserCoursePlayLog(UserCoursePlayLog userCoursePlayLog);

    /**
     * 更新课程
     */
    void updateUserCourse(UserCourse userCourse);

    List<UserCoursePlayLog> getUserCoursePlayLog(Long userId, Date beginTime, Date endTime);

    Optional<UserCourse> getUserCourse(Long userId, Long knowledgeNodeId);

    List<Long> getMyCoursePalyList(Long uid);

    UserCourse last(Long uid, String courseId);
}
